public class Main{
    public static void main(String[] argv){
        Printer printer = new PrinterImpl();
        printer = new SpacePrinter(printer);
        printer = new TagPrinter(printer);
        printer.print("hello world");
    }
}
